package com.example.pluto.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @TableName pluto_user
 */
@Document(indexName = "pluto_user_temp")
@TableName(value = "p luto_user_temp")
@Data
public class PlutoUser implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    @Field(store = true, index = false, type = FieldType.Long)
    private Long id;

    /**
     *
     */
    @Field(index = false, store = true, type = FieldType.Text)
    @TableField(value = "real_name")
    private String realName;

    /**
     *
     */
    @TableField(value = "password")
    @Field(index = false, store = true, type = FieldType.Text)
    private String password;

    /**
     *
     */
    @TableField(value = "age")
    @Field(index = false, store = true, type = FieldType.Integer)
    private Integer age;

    /**
     *
     */
    @TableField(value = "email")
    @Field(index = false, store = true, type = FieldType.Text)
    private String email;

    /**
     *
     */
    @TableField(value = "address")
    @Field(index = false, store = true, type = FieldType.Text)
    private String address;

    /**
     *
     */
    @TableField(value = "create_time")
     private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
